<html>
<head>
<title>Propriedade AllowJSAlert</title>
<link rel="stylesheet" href="HiperTools.css" type="text/css">
<style type="text/css">
 p { margin-top: 0; margin-bottom: 0; }
</style>
<script language="JavaScript" src="TrueHelp.js"></script>
</head>
<body onload="thload()">
<div id=ienav>
<ilayer id=nsnav>
<br>
<center>
<p class=normal><a href="HiperTools30-toc.htm" target="left">contents</a> &nbsp; <a href="HiperTools30-index.htm" target="left">index</a> &nbsp; <a href="TH_560.htm">previous</a> &nbsp; <a href="TH_562.htm">next</a></p>
</center>
<br>
<hr noshade size=1>
</ilayer>
</div>
<p class=propriedades>Propriedade AllowJSAlert</p>
<p class=heading-1>Descri&#231;&#227;o</p>
<p class=heading-1-p>&nbsp;</p>
<p class=normal>Retorna ou define se deve-se permitir que os m&#233;todos que apresentam fun&#231;&#245;es JavaScript tenham alertas &#8211; &#8220;alert(&#133;)&#8221;.</p>
<p class=heading-1>Sintaxe</p>
<p class=heading-1-p>&nbsp;</p>
<p class=normal><i>objeto</i>.<b>AllowJSAlert</b> [= <i>Boolean</i> ] </p>
<p class=normal>O argumento <i>objeto</i> sempre ter&#225; que ser um objeto V<i>alidate</i>.</p>
<p class=heading-1>Coment&#225;rios</p>
<p class=heading-1-p>&nbsp;</p>
<p class=normal>O c&#243;digo abaixo ilustra o uso do m&#233;todo <b>AllowJSAlert</b>.</p>
<p class=heading-1>Exemplo</p>
<p class=heading-1-p>&nbsp;</p>
<p class=preformatted>Dim&nbsp;Validate</p>
<p class=preformatted>Set&nbsp;Validate&nbsp;=&nbsp;Server.CreateObject("HiperTools30.Validate")</p>
<p class=preformatted>&nbsp;</p>
<p class=preformatted>Response.Write&nbsp;Validate.AllowJSAlert</p>
<p class=preformatted>&nbsp;</p>
<p class=preformatted>Retorna:&nbsp;True</p>
<p class=preformatted>&nbsp;</p>
<p class=preformatted>Validate.<b>AllowJSAlert</b>&nbsp;=&nbsp;False</p>
<p class=preformatted>&nbsp;</p>
<p class=preformatted>Validate.CPFOnClient</p>
<p class=preformatted>&nbsp;</p>
<p class=preformatted>Retorna:&nbsp;Toda&nbsp;fun&#231;&#227;o&nbsp;de&nbsp;valida&#231;&#227;o&nbsp;de&nbsp;CPF&nbsp;s&#243;&nbsp;que&nbsp;n&#227;o&nbsp;apresenta&nbsp;a&nbsp;mensagem:&nbsp;"Este&nbsp;CPF&nbsp;&#233;&nbsp;inv&#225;lido"</p>
<p class=normal>&nbsp;</p>
<p class=heading-1>Aplica-se </p>
<p class=heading-1-p>&nbsp;</p>
<p class=normal>Validate</p>
<p class=heading-1>Veja tamb&#233;m</p>
<p class=heading-1-p>&nbsp;</p>
<p class=normal>FormJavaValidSepDate, IsDateOnClient, PostalCodeOnClient, CGCOnClient, CPFOnClient, FormJavaValidCPFCGC, EMailOnClient</p>
<hr noshade size=1>
<p class=normal><a href="TH_562.htm"><img src="button.png" border=0></a><a href="TH_562.htm" style="text-decoration:none;">Propriedade JSStarted</a></p>
<p>
</body>
</html>